﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DefineGroup.aspx.cs" Inherits="Business_Cisoft3G_ContactsManage_DefineGroup" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>自定义组管理</title>
    <link href="../../../css/style.css" rel="stylesheet" type="text/css" />
    <link href="../../../css/font.css" rel="stylesheet" type="text/css" />
    <link href="../../../css/style_ts.css" rel="stylesheet" type="text/css" />
    <asp:Literal ID="ltScript" runat="server"></asp:Literal>
    <style type="text/css">
        .modalBackground
        {
            background-color: Gray;
            filter: alpha(opacity=70);
            opacity: 0.7;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="position_list">
        <div class="position_left_list">
        </div>
        <div class="position_con_list">
            <table border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td width="30">
                        <img src="../../../Images/3G/icon21.gif" width="14" height="14" alt="" />
                    </td>
                    <td class="cyan12">
                        自定义组管理
                    </td>
                </tr>
            </table>
        </div>
        <div class="position_right_list">
        </div>
    </div>
    <!--[if !IE]>搜素区域开始<![endif]-->
    <div class="search_list">
        <div class="search_top_list">
            <div class="search_topleft_list">
            </div>
            <!--  查询     -->
            <div class="search_topbg_list">
                <table border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td width="30" align="left" valign="middle" style="padding-top: 4px;">
                            <img src="../../../Images/3G/icon_logo.gif" width="22" height="22" />
                        </td>
                        <td width="100" class="cyan13_bold" style="padding-top: 5px;">
                            系统温馨提示栏
                        </td>
                        <td style="padding-top: 5px;">
                            
                        </td>
                    </tr>
                </table>
            </div>
            <div class="search_topright_list">
            </div>
        </div>
        <!--   列表(搜索条件、按钮)     -->
        <div class="index_search_con_list">
            <table border="0" cellpadding="0" cellspacing="0" style="padding-left: 10px">
                <tr>
                    <td>
                        <asp:Button ID="btnAdd" runat="server" Text="" OnClick="btnAdd_Click" CausesValidation="false" />
                        <asp:Button ID="btnDelete" runat="server" Text=""  CausesValidation="false" 
                            onclick="btnDelete_Click" />
                        <%--<asp:Button ID="btnDelete" runat="server" Text="" CausesValidation="false"
                                    OnClick="Button1_Click" OnClientClick="if(CheckCheckBoxIsChecked(this)) {return confirm('您确认删除吗？一旦删除，该组下的所有联系人都会被删除！');}else{alert('请选择要删除的记录！ '); return false;}" />
                        <asp:Button ID="btnDelete" runat="server" Text="" OnClick="LinkButton2_Click" OnClientClick="if(CheckCheckBoxIsChecked(this)){document.getElementById('hihDelete').value = 'true';}else{document.getElementById('hihDelete').value = 'false';}" />--%>
                        <br />
                        <br />
                    </td>
                </tr>
            </table>
            <!--数据列表-->
            <table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="73798f" 
            id="table1">
            <tr class="cyan12" bgcolor="#1E3541">
                <td width="25" height="20" valign="middle" style="text-align: center">
                    <asp:CheckBox ID="chcAll" runat="server" />
                </td>
                <td width="200" align="center" valign="middle">
                    自定义组名称
                </td>
                <td align="center" valign="middle">
                    组成员
                </td>
                <td align="center" valign="middle" width="70">
                    操作
                </td>
            </tr>
            <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand" 
                    onitemdatabound="Repeater1_ItemDataBound">
                <ItemTemplate>
                    <tr bgcolor="#1E3541" onmousemove="this.className='li_td_mouseover'" onmouseout="this.className='li_td_mouseout'">
                        <td height="20" align="center" valign="middle">
                            <asp:CheckBox ID="cbk_single" runat="server" name="cb1" AutoPostBack="false" />
                            <asp:Label ID="lblDefineGrouopID" runat="server" Visible="false" Text='<%#DataBinder.Eval(Container.DataItem, "DG_ID")%>'></asp:Label>
                        </td>
                        <td align="center" valign="middle">
                            <%#DataBinder.Eval(Container.DataItem, "DG_Name")%>
                        </td>
                        
                        <td align="center" valign="middle">
                            <%--<asp:Label ID="lblCompany" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "DG_GroupMember").ToString().Length > 20 ?  DataBinder.Eval(Container.DataItem, "DG_GroupMember").ToString().Substring(0, 17) + "...": DataBinder.Eval(Container.DataItem, "DG_GroupMember").ToString()%>'
                                ToolTip='<%#DataBinder.Eval(Container.DataItem, "DG_GroupMember")%>'></asp:Label>--%>
                            <asp:Label ID="lblDGMember" Text='<%#DataBinder.Eval(Container.DataItem, "DG_GroupMember")%>' runat="server"/>
                        </td>
                        
                        <td width="70" align="center" valign="middle">
                            <asp:LinkButton ID="lblDetails" class="yellow12_link" runat="server" CommandName="Details"
                                CommandArgument='<%# Eval("DG_ID")%>' Text='查看' CausesValidation="false"></asp:LinkButton>
                            <asp:LinkButton ID="lbtnEdit" class="yellow12_link" runat="server" CommandName="Edit"
                                CommandArgument='<%# Eval("DG_ID")%>' Text='修改' CausesValidation="false"></asp:LinkButton>
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    <tr>
                        <td colspan="7">
                            <asp:Label ID="lblEmpty" Text="对不起，未查询到记录。" ForeColor="Red" runat="server" Visible='<%#Repeater1.Items.Count <= 0%>'></asp:Label>
                        </td>
                    </tr>
                </FooterTemplate>
            </asp:Repeater>
        </table>
            <!--翻页-->
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td>
                    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" Width="100%" UrlPaging="false"
                        AlwaysShow="true" CustomInfoHTML="<span style:'height:18px;'></span><br/>共%PageCount%页 %RecordCount%条记录"
                        ShowCustomInfoSection="Left" FirstPageText="首页" PrevPageText="前一页" NextPageText="下一页"
                        LastPageText="末页" PageIndexBoxType="TextBox" ShowPageIndexBox="Always" TextBeforePageIndexBox="跳转到: "
                        SubmitButtonText="" SubmitButtonStyle="width:30px;height:21px;vertical-align:bottom;border:0px;background:url(../../../Images/3G/GO.gif) no-repeat;"
                        HorizontalAlign="right" PageSize="10" OnPageChanged="AspNetPager1_PageChanged"
                        EnableTheming="true">
                    </webdiyer:AspNetPager>
                </td>
            </tr>
        </table>
        </div>
    </div>
    <div class="search_bottom_list">
        <div class="search_bottomleft_list">
        </div>
        <div class="search_bottombg_list">
        </div>
        <div class="search_bottomright_list">
        </div>
    </div>
   
    </form>
</body>
</html>